package com.woniu.service.impl;

import com.woniu.dao.CollectionDao;
import com.woniu.entity.*;
import com.woniu.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CollectServiceImpl implements CollectService {
    @Autowired
    CollectionDao collectionDao;

    @Override
    public List<CollectionListVO> listCollections() {
        return collectionDao.listCollections();
    }

    @Override
    public Integer saveCollectRecord(Map<String, Object> data) {
        return collectionDao.saveCollectRecord(data);
    }

    @Override
    public Client getClientInfo(Integer loanInfoId) {
        return collectionDao.getClientInfo(loanInfoId);
    }

    @Override
    public BillDetailVO getBillDetail(Integer billId) {
        return collectionDao.getBillDetail(billId);
    }

    @Override
    public List<BillDetailVO> getBillOrders(Integer loanInfoId) {
        return collectionDao.getBillOrders(loanInfoId);
    }

    @Override
    public List<BillListInfoVO> getBillListInfo(Integer loanInfoId) {
        return collectionDao.getBillListInfo(loanInfoId);
    }

    @Override
    public Production getProductionInfo(Integer loanInfoId) {
        return collectionDao.getProductionInfo(loanInfoId);
    }

    @Override
    public Integer addCollectRecord(Map<String, Object> data) {
        return collectionDao.addCollectRecord(data);
    }

    @Override
    public SysAdminVO getOperatorInfo(String name) {
        return collectionDao.getOperatorInfo(name);
    }

    @Override
    public Integer updateClientRemark(Map<String,Object> data) {
        return collectionDao.updateClientRemark(data);
    }

    @Override
    public List<CollectionListVO> selectCollectionList(UsualExportVO data) {
        return collectionDao.selectCollectionList(data);
    }

    @Override
    public List<CollectionListVO> searchCollectList(SearchCollectVO data) {
        return collectionDao.searchCollectList(data);
    }
}
